#include "../include/threadPool.h"

int threadPoolInit(threadPool_t *pthreadPool, int workerNum){
    workerInit(&pthreadPool->workerArr,workerNum);
    queueInit(&pthreadPool->taskQueue);
    pthread_mutex_init(&pthreadPool->mutex,NULL);
    pthread_cond_init(&pthreadPool->cond,NULL);
    return 0;
}
